package kr.pe.johnkim.waiting.mobile.dao;

import kr.pe.johnkim.waiting.mobile.domain.WaitingBusinessKind;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : John_Kim <cale9797@gmail.com>
 * @date : 13. 8. 29.
 */
@Repository
public class WaitingBusinessKindDaoImpl extends SqlSessionDaoSupport implements WaitingBusinessKindDao {

    // SLF4J Logging
    private Logger logger = LoggerFactory.getLogger(WaitingBusinessKindDaoImpl.class);

    /**
     * 업종 목록을 가져 온다.
     *
     * @param waitingBusinessKind
     * @return
     */
    @Override
    public List<WaitingBusinessKind> selectBusinessKindList(WaitingBusinessKind waitingBusinessKind) {
        logger.info("selectBusinessKindList");
        return this.getSqlSession().selectList("WAITING_BUSINESSKINDS.selectBusinessKindList", waitingBusinessKind);
    }
}
